package cn.theten52.demo.patterns.design.behavior.mediation.update2;

/**
 * TODO
 *
 * @author wangjin
 * @date 2021/4/3
 */
//具体同事类：少林寺
public class Shaolin extends Colleague {
    public Shaolin(Mediator mediator) {
        super(mediator);
    }

    public void sendMessage(String message) {
        mediator.notice(message, this);
    }

    public void getNotice(String message) {
        System.out.println("少林寺收到消息：" + message);
    }
}
